<?php foreach ($minuman as $hasil):?>
<form class="form-horizontal" action="<?php echo base_url()?>index.php/minumancontrollers/updtminuman/<?php echo $hasil->id_minuman?>" method="post" enctype="multipart/form-data" />


       
    <div class="form-group">
        <label class="col-lg-2 control-label">nama resep</label>
        <div class="col-lg-5">
            <input type="text" name="nama" class="form-control" value="<?php echo $hasil->nama?>">
        </div>
    </div>
    
    <div class="form-group">
        <label class="col-lg-2 control-label">bahan</label>
        <div class="col-lg-5">
            <textarea name="bahan" ><?php echo $hasil->bahan?></textarea>
        </div>
    </div>
    
    <div class="form-group">
        <label class="col-lg-2 control-label">langkah - langkah</label>
        <div class="col-lg-10">
            <textarea name="cara"><?php echo $hasil->cara?></textarea>
        </div>
    </div>


    
    <div class="form-group">
        <label class="col-lg-2 control-label">gambar</label>
        <div class="col-lg-10">
            <img src="<?php echo base_url('assets/img/'.$resep['gambar']);?>" height="200px" width="200px">
        </div>
    </div>
    
    <div class="form-group">
        <label class="col-lg-2 control-label"></label>
        <div class="col-lg-5">
            <input type="file" name="gambar" class="form-control">
        </div>
    </div>
    
    <div class="form-group well">
        <button class="btn btn-primary"><i class="glyphicon glyphicon-hdd"></i> Simpan</button>
        <a href="<?php echo site_url('minuman');?>" class="btn btn-default">Kembali</a>
    </div>
</form>
  <?php endforeach ?>  